<?php
	$clinicNo = $_POST["clinicNo"];
	$content = $_POST["content"];
	
	if( $clinicNo == 0 ){
		$fp = fopen("./config/clinic_content/default.txt", "w");
		fwrite($fp, $content);
		fclose($fp);
	}else{
		$fp = fopen("./config/clinic_content/".$clinicNo.".txt", "w");
		fwrite($fp, $content);
		fclose($fp);
	}
	
	$data = "{\"data\":{\"status\":\"success\"}}";
	echo $data;
?>